import Vue from 'vue'
import Router from 'vue-router'


import Home from '@/views/app/main/Home'
import Find from '@/views/app/main/Find'
import Tool from '@/views/app/main/Tool'
import Mind from '@/views/app/main/Mind'
//下载
import Company from '@/views/app/download/Company'
import FileList from '@/views/app/download/FileList'

//帮助
import HelpMain from '@/views/app/help/HelpMain'
import HelpClass from '@/views/app/help/HelpClass'
import HelpInfo from '@/views/app/help/HelpInfo'

//小鹿头条
import NewsList from '@/views/app/news/Newslist'
import NewsInfo from '@/views/app/news/NewsInfo'

//在线咨询
import Consult from '@/views/app/consult/Consult'

//登陆模块
import Login from '@/views/app/login/Login'

/*
*	家庭保障方案
*/
import FamliyPlan from '@/views/tool/family/FamilyPlanList'
import CreateFamliyPlan from '@/views/tool/family/CreateFamilyPlan'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
		{
			path: '/download',
			name: 'Download',
			component: Company
		},
		{
			path: '/file',
			name: 'FileList',
			component: FileList
		},
		{
			path:	'/help',
			name: 'Help',
			component: HelpMain
		},
		{
			path: '/help-class',
			name: 'HelpClass',
			component: HelpClass
		},
		{
			path: '/help-info',
			name: 'HelpInfo',
			component: HelpInfo
		},
		{
			path: '/consult',
			name: 'Consult',
			component: Consult
		},
		{
			path: '/newslist',
			name: 'NewsMore',
			component: NewsList
		},
		{
			path: '/newsinfo',
			name: 'Newsinfo',
			component: NewsInfo
		},
		{
			path: '/find',
			name: 'Find',
			component: Find
		},
		{
			path: '/tool',
			name: 'Tool',
			component: Tool
		},
		{
			path: '/planlist',
			name: 'FamilyPlan',
			component: FamliyPlan
		},
		{
			path: '/createplan',
			name: 'CreatePlan',
			component:CreateFamliyPlan
		},
		{
			path: '/mind',
			name: 'Mind',
			component: Mind
		},
		{
			path: '/login',
			name: 'Login',
			component: Login
		}
  ]
})
